#include <iostream>
#include <fstream>
#include "JFile.h"
#include "JSerialize.h"
#include "JTree.h"
#include "JClientUtility.h"
#include "JTime.h"
#include "JConfig.h"
#include "JSerialize.h"
#include "JWorkingCopies.h"
#include "JCommandLine.h"
#include "JWorkingCopiesBaseFile.h"
#include "JUuid.h"

using namespace std;
//
//void PrintTree(JTree& tree)
//{
//	for(int i = 0;i < tree.tree.size(); ++i)
//	{
//		JNodePtr pNode = tree.tree[i];
//		JFile* file = (JFile*)(pNode->data.get());
//		std::cout << file->filename << " " << pNode->selfIndex << " " << pNode->parentIndex << std::endl;
//	}
//}

int main(int argc,char* argv[])
{
    cout << JUuid::ToString();
	//JCommandLine cmd;
	//int argc2 = 3;
	//char* argv2[3] = {"JServer.exe","add","foo"};
	
	//char* argv2[6] = {"JServer.exe","create","https://johnneyshi.googlecode.com/svn/trunk","johnneyshi","dave","D:\\testJsvn\\myself"};
	//char* argv2[3] = {"JServer.exe","delete","D:\\Projects\\Console Projects\\CPlusPlus\\JSubVersion2\\JSubVersion\\JSubVersion\\config.xml"};
	//char* argv2[3] = {"JServer.exe","add","config.xml"};
	//char* argv2[3] = {"JServer.exe","add","Release\\test2"};
	//char* argv2[3] = {"JServer.exe","delete","D:\testJsvn\myself\test2\testtest1\text11.txt"};
	//char* argv2[3] = {"JServer.exe","status","D:\\Projects\\Console Projects\\CPlusPlus\\JSubVersion2\\JSubVersion\\JSubVersion"};
	//char* argv2[3] = {"JServer.exe","status","D:\\testJsvn\\myself"};	
	//char* argv2[4] = {"JServer.exe","move","Release\\test","Release\\test2"};
	//cmd.Run(argc2,argv2);
	//cout << JWorkingFileDelete << endl;
	//cmd.Run(argc,argv);

//	JFile file("/home/johnneyshi/buff");
//	iostream& strea = file.OpenStream(ios::in | ios:: out | ios::binary );
//	JFile file2("/home/johnneyshi/test1");
//	//iostream& strea2 = file2.OpenStream(ios::in | ios::out | ios::binary);
//	int tmp;
//	file2.ReSerialize(strea);
//	file.CloseStream();
	/////////////////////////////////////
}

